home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
asmutil
/
asm_n_z.zip
/
SDDOS.DOC
< prev
next >
Wrap
Text File
|
1988-01-29
|
31KB
|
802 lines
Switch Directory
Stephen M. Falatko
Copyright 1987, 1988
Table of Contents
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Available Commands . . . . . . . . . . . . . . . . . . . . . . 3
Acknowledgement . . . . . . . . . . . . . . . . . . . . . . . . 5
Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
The Configuration File . . . . . . . . . . . . . . . . . . . . . 8
Caveats and Other Things . . . . . . . . . . . . . . . . . . . . 9
Error Messages . . . . . . . . . . . . . . . . . . . . . . . . . 10
Errorlevel and Batch Files . . . . . . . . . . . . . . . . . . . 11
Changing the Internal Name of SD . . . . . . . . . . . . . . . . 11
License . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Update Notes . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Introduction
------------
Switch Directory - DOS (SD) is a utility that allows easy
switching between subdirectories and drives with a minimum of
typing. SD has been designed to replace the DOS CD command
while providing enhancements to the CD command. SD allows you
to specify a specific subdirectory name, a combination of
subdirectory names and search switches or a complete path
specifier. All features of SD work across disk drives. If
you have made a mistake, hitting Ctrl-Brk while SD is searching
will break you out of SD and put you back in the subdirectory
you started in.
Switch Directory - DOS 1.0 is descended from SD version 3.4 and
its predecessors. The improvement in SD is that SD - DOS can
attach itself to DOS and provide the same functionality
previously only available with SD in combination with PCED or
CED. For users of PCED or CED, an enhanced version of SD 3.4
is available called Switch Directory - CED.
Available Commands
------------------
[blank] - Display current path
\ - Return to root directory
\[path] - Switch to the specified path
/[subdirectory] - Search below the current directory for
'subdirectory'
? - Display help information (if not installed with
the [+ command)
.. - Back up one directory
Combinations of \ and / may be used to increase the speed of
searching while still reducing the required typing.
All commands work across drives with the exception of the show
path command. SD is NOT case sensitive.
+ - Loads SD without help. (Using this combination
saves almost 1K of memory)
- - Loads SD without the stack feature. (Using this
combination saves over 600 bytes of memory)
3
d:\dos\sd.cfg - The file is a configuration file for the internal
stack. By using a configuration file it is
possible to pre-load the stack at startup, making
the stack feature much easier to use. The
configuration file is an ascii file consisting of
ten lines formatted as shown:
0=D:\DOS
1=D:\DOS\TURBO
.
.
The file names can be in any case but MUST
include the full drive and path specifier. Each
line must be terminated by a carriage return-
line feed sequence. Most wordprocessors or text
editors can output an appropriate file. If
something is wrong with the file SD will let you
know.
NOTE: The + and - commands can be combined on the
command line. The only requirement is that they
be immediately after SD.
"0 - switch to stack path 0 (the zero may be replaced
with any number 0-9)
"0=[path] - set stack path 0 to [path]. [path] may contain
drive specifiers. In this way you can switch
between drives as well as paths.
"0=[blank] - clear stack path 0 ([blank] means a space
character)
"0=@ - set stack path 0 to the current path.
"s (or S) - show the current stack contents.
"+ - switch to the next available higher stack entry.
(for example, if you have switched to stack entry
3, "+ will switch you to the next higher filled
entry be it 4, 5, 6... "+ will wrap if none of
the higher entries contain paths)
"- - switch to the next available lower stack entry.
(will wrap around in the same fashion as "+)
@ - switch to 'home'. That is, switch to the last
directory selected with a "+, "- or "# command.
@" - remove SD from memory.
4
Acknowledgement
---------------
I would like to thank Jack Kilday, sysop of Northern Lights BBS in
Maine for his efforts Beta testing SD and his ideas for
improvements. Thanks also go to Eric Isaacson, author of A86 for
some coding tips. Chris Dunford provided suggestions regarding
interactions with PCED and planted the seeds which encouraged me to
add the 'stack' feature. Thanks to Jerry Gray for pointing out the
problem with subdirectories that have extensions. James Bach gets
the thanks for suggesting the hidden subdirectory search.
Examples
--------
Suppose your hard disk directory looked something like this:
[Root]------DOS---|---DISKUTIL
|
|---TURBO--|--SOURCE
| |
| |--TOOLS
|
|---WORDPERF
Then, if we wanted to switch to this drive we could use:
SD d: - Would change the active drive to d: and put you
in the default directory which we will assume is
the [Root] directory (this is similar to typing